
from SinglePlayerController import SinglePlayerController
from ServerController import ServerController
from ClientController import ClientController

# Controller
ControllerMap = {
    "single":SinglePlayerController,
    "server":ServerController,
    "client":ClientController,
}
# Singleton
Controller = None
def MapBodyControllerReset(type, **kw):
    global Controller
    Controller = ControllerMap[type](**kw)
    return Controller

def MapBodyControllerGet():
    global Controller
    return Controller
